package com.rainng.coursesystem.manager.member;

import com.rainng.coursesystem.dao.MemberEventDAO;
import com.rainng.coursesystem.manager.BaseManager;
import com.rainng.coursesystem.model.vo.response.table.TimetableItemVO;
import org.springframework.stereotype.Component;

import java.util.List;

@Component("member_timetableManager")
public class TimetableManager extends BaseManager {
    private final MemberEventDAO memberEventDAO;

    public TimetableManager(MemberEventDAO memberEventDAO) {
        this.memberEventDAO = memberEventDAO;
    }

    public List<TimetableItemVO> listMemberTimetable(Integer memberId) {
        return memberEventDAO.listMemberTimetable(memberId);
    }
}
